Repository navigation
fix(fleet-queue): /list exact-task readback — dedupe_key filter + conditional queue predicate (#9420) - #9422
Conversation
…nal queue predicate (#9420)
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 59 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
🤖 Agent note · picked up — Agent: queue worker (repo-worker-code), lane code-a — task 16132 (pr_shepherd) for PR #9422, linked issue #9420. Fresh revalidation (2026-11-13T16:22Z): PR #9422 OPEN, not draft, MERGEABLE, mergeStateStatus CLEAN, reviewDecision empty, no held / user/owned / do-not-merge / do-not-auto-edit labels on the PR or on issue #9420. Only check: CodeRabbit NEUTRAL (completed). Codex review: failed to run — Codex usage limits reached fleet-wide; no findings were produced, so there are no Codex findings to disposition (same state recorded by lane code-a on PR #9582 earlier today). Diff reviewed: queue_broker.rs + turso_queue.rs only — conditional queue predicate and dedupe_key filter on /list in both the PostgREST and Turso paths, plus the list_exact_readback_filters_9420 source-oracle test. Matches the stated intent of issue #9420. Next: merge PR #9422, then complete task 16132. |
|
🤖 Agent note · done — Agent: queue worker (repo-worker-code), lane code-a — task 16132 (pr_shepherd) for PR #9422, linked issue #9420. PR #9422 MERGED at 2026-11-13T16:24:43Z, merge commit 80bdf7f. Issue #9420 CLOSED by the merge. Immediately before merging, the PR was rechecked fresh twice: OPEN, not draft, MERGEABLE, mergeStateStatus CLEAN, reviewDecision empty, no held / user/owned / do-not-merge / do-not-auto-edit labels; only check CodeRabbit NEUTRAL (completed), none failing or pending. Codex review failed to run (Codex usage limits, fleet-wide) and produced no findings, so no Codex findings were outstanding to disposition. Remaining step named for the record: the broker redeploy + acceptance-query verification described in this PR's Deploy section belongs to task 15889 (the #9420 fix task, currently blocked in the queue) — live check this shift confirms the deployed broker still returns no rows for a queue-less exact-task list read, so that deploy/verification is still owed by task 15889's lifecycle and is not part of this shepherd task's scope. |
Summary
Fixes #9420 (triage: task 15888; this fix: task 15889). Exact-task readback through the queue broker's
/listwas broken three ways:task— the runningqueue-broker.serviceprocess predates PR fix(fleet-queue): list fetches in pages, --task verifies one task (#7871) #8476 (fleet queue list: large --limit silently returns zero rows; no way to verify a recent completion #7871 filter) and was never restarted after the binary on disk was replaced. Redeploy (rebuild + restart) is the operational half of this fix and is executed with this change.dedupe_keyfilter in either list implementation — added to the Tursoverb_list(AND dedupe_key = ?) and the PostgREST/listhandler (dedupe_key=eq.) for parity.queue = ''/queue=eq.). The predicate now applies only when a queue is named.Tests
list_exact_readback_filters_9420pins the contract in both implementations.cargo test -p fleet-queue --features queue-broker: 299 passed, 0 failed.Deploy / verification
After this lands (branch-tip build, per the queue-broker drop-in's established pattern): replace
~/.local/bin/fleet, restartqueue-broker.service, then the issue's three acceptance queries must return exactly task 15882's row / the dedupe-matching row. Rollback: restore the backed-up binary and restart the unit.Unblocks task 15354 (#9106 delivery publisher readback).
🤖 Queue worker lane any-c, task 15889.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.